package com.spring.web.adminmanage.entities;

import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Id;
import java.io.Serializable;

public class Role implements Serializable{
	
	@Id
	private Long id;
	
	@NotEmpty(message="姓名不能为空")
	private String rolename;//最后一次登录时间

	private Integer secrecy;//隐藏敏感信息：0表示不隐藏，1表示隐藏
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRolename() {
		return rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename;
	}

	public Integer getSecrecy() {
		return secrecy;
	}

	public void setSecrecy(Integer secrecy) {
		this.secrecy = secrecy;
	}
}
